package cn.tongdun.atreus.common.log;

import cn.tongdun.atreus.common.log.LoggerUtil;

import org.yaml.snakeyaml.DumperOptions;

import java.util.*;

/**
 * @author wangze
 * @date 2021-10-27 21:22.
 **/
public class YmlUtils {

	public static final DumperOptions OPTIONS = new DumperOptions();


	static {
		OPTIONS.setDefaultFlowStyle(DumperOptions.FlowStyle.BLOCK);

	}





	/**
	 * 获取所有pattern，含key为pattern，key为patterns
	 *
	 * @return pattern
	 */
	public static Map<String, Object> getAllPattern() {
		return LoggerUtil.getRules();
	}


}